import { createRouter, createWebHistory} from 'vue-router';

const routes = [
    {
        path: '/',
        component: () => import('../components/login.vue'),
    },
    {
        path: '/shop',
        component: () => import('../components/shop.vue'),
    },
    {
        path: '/charge',
        component: () => import('../components/charge.vue'),
    },
    {
        path: '/admin',
        component: () => import('../components/admin.vue'),
    },
    {
        path: '/dashboard',
        component: () => import('../components/dashboard.vue'),
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router